<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8" />
		<title>Document</title>
	</head>
	<body>
		<script type="text/javascript" >

			class Student {
				constructor(name,age){
					this.name = name
					this.age = age
				}
				a = 1 //改行代码的含义是：给实例自身追加一个属性，名为a，值为1
				school = '尚硅谷'
			}

			const s1 = new Student('老刘',5)
			const s2 = new Student('老王',4)
			console.log(s1)
			console.log(s2)

		</script>
	</body>
</html>